<template>
  <div class="child2">
    <fieldset>
      <legend><h2>child2组件</h2></legend>
      <slot name="c1"></slot><br>
      <input type="text" placeholder="请输入文本"><br>
      <slot name="c2"></slot><br>
    </fieldset>
  </div>
</template>

<script>
export default {
  name: "Child2"
}
</script>

<style scoped>
  .child2{
    width: 100%;
    height: 70%;
    background-color: #8aff90;
  }
</style>